package cn.icanci.loopstack.ddk.common.anno;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 值注解，作用在字段上
 * 
 * @author icanci(1205068)
 * @version Id: DdkBeforeCall, v 0.1 2022/12/14 00:44 icanci Exp $
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface DdkValue {
    /**
     * 配置字典值
     * 支持注入的类型：@Type {String.class, Integer.class, int.class, Long.class, long.class, Double.class,
     *         double.class, Float.class, float.class, Boolean.class, boolean.class, Character.class, 
     *         char.class, Short.class, short.class, Byte.class, byte.class, BigDecimal.class}
     *         
     * 注入值的方式 @DdkValue("#key")
     * @return 返回配置字典值
     */
    String value();
}
